<?php

namespace app\index\model;

use think\Model;

class Assetrelation extends Model
{

    public static function get_data($data='')
    {
        return self::where($data)->select();
    }

    public static function get_count($data='')
    {
        return self::where($data)->count();
    }

    public static function add_data($data)
    {
        return self::insert($data);
    }

    public static function update_data($data)
    {
        return self::update($data);
    }

     public static function delete_data($data='')
    {
        return self::where($data)->delete();
    }
}